package ca.on.eho.qa.applogic1;

import ca.on.eho.qa.applogic.NavigationHelper;
import ca.on.eho.qa.applogic1.ApplicationManager1;
import ca.on.eho.qa.applogic1.DriverBasedHelper;

import ca.on.eho.qa.pages.Page;
import ca.on.eho.qa.pages.PageManager;
import ca.on.eho.qa.pages.AnyInternalPage;
import ca.on.eho.qa.pages.LoginPage;

public class NavigationHelper1 extends DriverBasedHelper implements NavigationHelper {

	private ApplicationManager1 manager;
	
	public NavigationHelper1(ApplicationManager1 manager) {
		super(manager.getWebDriver());
		this.manager = manager;
	}
	
	@Override
	public void OpenMainPage () {
		driver.get(manager.getBaseUrl());
	
	}

	@Override
	public void goToClientSelectorLabResult() {
	  	pages.anyInternalPage.clickClientSelectorLink();
	}

	@Override
	public void goToPatientSelectorLabResult() {
	  	pages.anyInternalPage.clickPatientSelectorLink();
	}
	
	@Override
	public void goToSoftwareTestingRu() {
		pages.googlePage.ensurePageLoaded();
	  	pages.googlePage.setSearchField();
	}
}
